
/**
 * 
 */
package com.zsrt.day20170411;

/**
 * @author jmj
 * @date 2017年4月11日
 * @time 上午11:11:12
 */
public class Teacher {
	private String teacherName;
	private float teacherSalary;
	private int teacherAge;
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Teacher [teacherName=" + teacherName + ", teacherSalary=" + teacherSalary + ", teacherAge=" + teacherAge
				+ "]";
	}
	
	/**
	 * 构造方法
	 * @param name
	 * @param age
	 * @param salary
	 */
	/*public Teacher(String name, int age,double salary){
		teacherName = name;
		teacherSalary = salary;
		teacherAge = age;
		
	}*/  //ctrl+shift+/

	
	
	
	
	/** 
	 *toString 的另外一种实现方法
	 * @return the teacherName
	 */
	public String getTeacherName() {
		return teacherName;
	}

	/**
	 * @param teacherName the teacherName to set
	 */
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	/**
	 * @return the teacherSalary
	 */
	public float getTeacherSalary() {
		return teacherSalary;
	}

	/**
	 * @param teacherSalary the teacherSalary to set
	 */
	public void setTeacherSalary(float teacherSalary) {
		this.teacherSalary = teacherSalary;
	}

	/**
	 * @return the teacherAge
	 */
	public int getTeacherAge() {
		return teacherAge;
	}

	/**
	 * @param teacherAge the teacherAge to set
	 */
	public void setTeacherAge(int teacherAge) {
		this.teacherAge = teacherAge;
	}

	

	

}
